.class public Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static a:Ljava/lang/String;

.field public static b:Ljava/lang/String;

.field public static c:Ljava/lang/String;


# instance fields
.field d:Ljava/lang/String;

.field private e:Lcom/waiqin365/base/login/LoginMainActivity;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/LinearLayout;

.field private j:Landroid/widget/ImageView;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/ImageView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string/jumbo v0, "en"

    sput-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a:Ljava/lang/String;

    const-string/jumbo v0, "zh"

    sput-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    const-string/jumbo v0, "lanuage_setting"

    sput-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->c:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->e:Lcom/waiqin365/base/login/LoginMainActivity;

    return-void
.end method

.method private a()V
    .locals 3

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->g:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080183

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->h:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->h:Landroid/widget/TextView;

    const v1, 0x7f08078d

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c08a1

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->i:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c08a2

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->j:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c08a3

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->k:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c08a4

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->l:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    const v2, 0x7f02012d

    const v1, 0x7f020129

    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method private b()V
    .locals 4

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v2, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v1, v3, :cond_1

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/base/login/LoginMainActivity;

    if-nez v0, :cond_0

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/LoginMainActivity;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->e:Lcom/waiqin365/base/login/LoginMainActivity;

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->e:Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->e:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->deleteCache()V

    :cond_2
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->back()V

    goto :goto_0

    :sswitch_1
    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->c:Ljava/lang/String;

    sget-object v1, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b()V

    goto :goto_0

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->back()V

    goto :goto_0

    :sswitch_2
    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    :sswitch_3
    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c01da -> :sswitch_0
        0x7f0c0309 -> :sswitch_1
        0x7f0c08a1 -> :sswitch_2
        0x7f0c08a2 -> :sswitch_2
        0x7f0c08a3 -> :sswitch_3
        0x7f0c08a4 -> :sswitch_3
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030191

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->setContentView(I)V

    sget-object v0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->c:Ljava/lang/String;

    sget-object v1, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->b:Ljava/lang/String;

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->d:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/base/login/fragment/activity/LanguageSettingActivity;->a()V

    return-void
.end method
